package com.ai.bitcoin.jpa.dao;

import com.ai.bitcoin.jpa.entity.Bcc24HourVolume;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * 币24小时交易量
 */
public interface Bcc24HourVolumeDao extends JpaRepository<Bcc24HourVolume, String> {
    @Cacheable("findBySymbolOrderByVolumePercentDesc")
    List<Bcc24HourVolume> findBySymbolOrderByVolumePercentDesc(String symbol);
}
